From: Daniel Sheeler Date: Sat, 24 Aug 2024 16:01:20 +0000 (-0500) Subject: dash: Show move cursor on app icon dnd to dash X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~219^2^2~20 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=24cd7af920107b2175dff38261bf0cb1bd16534d;p=gnome-shell.git dash: Show move cursor on app icon dnd to dash Previously, the 'copy' drag and drop cursor was displayed when dragging an application icon to the dash (which adds the app to favorites), but the operation is really a move, so ensure the 'move' dnd cursor is used. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7819 Part-of: --- diff --git a/js/ui/dash.js b/js/ui/dash.js index 086bc8275..585f34063 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -935,12 +935,7 @@ export const Dash = GObject.registerClass({ if (!this._dragPlaceholder) return DND.DragMotionResult.NO_DROP; - let srcIsFavorite = favPos !== -1; - - if (srcIsFavorite) - return DND.DragMotionResult.MOVE_DROP; - - return DND.DragMotionResult.COPY_DROP; + return DND.DragMotionResult.MOVE_DROP; } // Draggable target interface